<footer class="site-footer">
  <div class="row">
  {{ range site.Menus.footer }}
    {{ if and .Name .HasChildren }}
      <div class="col-sm-4 mb-3 mb-md-0">
        <b>{{ .Name }}</b>
        {{ if .HasChildren }}
          <ul>
            {{ range .Children }}
              {{ if and .URL .Name}}
                {{ $target := "" }}
                {{ $isExternal := false }}
                {{ if gt (len .URL) 4 }}
                  {{ if eq "http" (slicestr .URL 0 4) }}
                    {{ $target = " target=\"_blank\" rel=\"noopener\"" }}
                    {{ $isExternal = true }}
                  {{ end }}
                {{ end }}
                <li>
                  <a href="{{ .URL }}" title="{{ .Name | safeHTMLAttr }}" {{ $target | safeHTMLAttr }}>
                    {{ if .Pre }}
                      <img src="{{ .Pre | relURL | safeHTMLAttr}}" title="{{ .Name | safeHTMLAttr }}" {{ if .Post }}class="{{ .Post | safeHTMLAttr }}"{{ end }} />
                    {{ else }}
                      {{ .Name | safeHTML }}
                    {{ end }}
                    {{ if $isExternal }}
                      <i class="fa fa-external-link-alt" aria-hidden="true"></i>
                    {{ end }}
                  </a>
                </li>
              {{ end }}
            {{ end }}
          </ul>
        {{ end }}
      </div>
    {{ end }}
  {{ end }}


<!--  {{ if or (site.GetPage "terms.md") (site.GetPage "privacy.md") }}-->
<!--  <p class="powered-by">-->
<!--    {{ with site.GetPage "privacy.md" }}-->
<!--      {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}-->
<!--    {{ end }}-->
<!--    {{ with site.GetPage "terms.md" }}-->
<!--      {{ if site.GetPage "privacy.md" }} &middot; {{ end }}-->
<!--      {{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}-->
<!--    {{ end }}-->
<!--  </p>-->
<!--  {{ end }}-->

<!--  <p class="powered-by">-->
<!--    {{ with site.Copyright }}{{ replace . "{year}" now.Year | markdownify}}{{ end }}-->
<!--  </p>-->

<!--  {{/* Display copyright license. */}}-->
<!--  {{ partial "site_footer_license" . }}-->

  </div>
  <div class="row justify-content-center mt-3 position-relative">
    <p class="powered-by text-center font-italic mb-0 pb-0">
      Powered by the
      <a href="https://themes.gohugo.io/themes/starter-hugo-academic" target="_blank" rel="noopener">Academic theme</a> for
      <a href="https://gohugo.io" target="_blank" rel="noopener">Hugo</a>.
      <br>
      Header image &#169; fanjianhua/ iStock
      <br>
      Website built on {{ now.Format "2 Jan 2006, 15:04 MST" }}
    </p>
    {{ if not (in (slice "docs" "updates") .Type) }}
      <span class="position-absolute mr-3 mr-md-0" aria-hidden="true" style="right: 0;">
        <a href="#" class="back-to-top">
          <span class="button_icon">
            <i class="fas fa-chevron-up fa-2x"></i>
          </span>
        </a>
      </span>
    {{ end }}
  </div>
</footer>

<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  _paq.push(["setExcludedQueryParams", ["debug","dry","clean","nomaster"]]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://www.dcaiti.tu-berlin.de/m/";
    _paq.push(['setTrackerUrl', u+'m.php']);
    _paq.push(['setSiteId', 'm4o1kOykpy']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src=u+'m.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<img src="https://www.dcaiti.tu-berlin.de/m/m.php?idsite=m4o1kOykpy&amp;rec=1" style="border:0;display:none;" alt="" />
<!-- End Matomo Code -->

